<?php
require(dirname(__FILE__).'/base.class.php');
class Charts extends Base{
    function __construct()
    {
        parent::__construct();
    }
    // 月销量金额统计
    function index(){
        $output=['errcode'=>0,'msg'=>'success'];
        $data=[
            ['total'=>100000],
            ['total'=>990000],
            ['total'=>220000],
            ['total'=>132000],
            ['total'=>200000],
            ['total'=>409000],
            ['total'=>590008],
            ['total'=>600010],
            ['total'=>200000],
            ['total'=>800000],
            ['total'=>600000],
            ['total'=>400000],
        ];
        $output['data']=$data;
        echo json_encode($output);
    }

}
?>